package com.wfms.service;

import com.wfms.bean.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2017/12/24.
 * EUREKACLIENT
 */
@FeignClient(value ="eurekaclient")
public interface UserService {

//    @RequestMapping(value = "/eureka/user/{id}",method = RequestMethod.GET)
    @GetMapping("/eureka/user/{id}")
    public User findById(@PathVariable("id")int id);

    @PostMapping("/eureka/user/")
    public User saveUser(@RequestBody User user);


}
